package com.example.mq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 消费者
 */
@Component
@RabbitListener(queues = "HelloRabbit")
public class RabbitConsumer {

//    @RabbitHandler
//    public void process(String content) {
//        System.out.println("消费内容：" + content);
//    }
}
